from django.db import models


class NormalUser(models.Model):
    user_id = models.IntegerField()
    resume = models.CharField(max_length=50, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'normal_user'


class User(models.Model):
    id = models.IntegerField(primary_key=True)
    username = models.CharField(unique=True, max_length=120)
    password = models.CharField(unique=True, max_length=120)
    type = models.IntegerField()
    email = models.CharField(max_length=50, blank=True, null=True)
    phone = models.CharField(max_length=20, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'user'

